//
//  BottomTableViewCell.cpp
//  PlantNanny
//
//  Created by Joueu on 14-12-19.
//
//

#include "BottomTableViewCell.h"
#include "ShowCup.h"
#include "DictionaryKeyNames.h"


bool BottomTableViewCell::init()
{
    if (!TableViewCell::init()) {
        return false;
    }
    
    this -> setContentSize(BOTTOMCELL_SIZE);
    for (int i = 0; i < 4; i++) {
        auto cup = ShowCup::createWithNameAndCap("cup_10_d@2x.png", i);
        cup -> setPosition(Point((i + 0.5f) * BOTTOMCELL_SIZE.width * 0.25f, BOTTOMCELL_SIZE.height * 0.58f));
        this -> addChild(cup);
    }
    return true;
}